package com.xjgc.msibase.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import com.xjgc.msibase.entity.MsiServerRecordInfo;
import org.springframework.scheduling.annotation.Async;

import java.util.Date;
import java.util.List;

/**
 * 实时接口传输记录 明细
 *
 * @author: 小逗号
 * @date: 2023-9-27
 * @description:
 * @since:
 */
public interface IMsiRealRecordInfoService extends IService<MsiServerRecordInfo> {
    @Deprecated
    void addRecordInfo(String serialNo, Integer nodeCode, String nodeName, String dataTxt, String message);
    @Deprecated
    void addRecordInfoAsJson(String serialNo, Integer nodeCode, String nodeName, Object object, String message);
    @Deprecated
    void addRecordInfo(String serialNo, Integer nodeCode, String nodeName, List<?> list, String message);
    @Deprecated
    void addRecordInfo(String serialNo, Integer nodeCode, String nodeName, Result<?> result, String message);

    /**
     * 异步新增记录明细
     * @param recordId
     * @param nodeCode
     * @param nodeName
     * @param dataTxt
     * @param message
     * @param date
     */
    @Async
    void addRecordInfo(String recordId, Integer nodeCode, String nodeName, String dataTxt, String message, Date date);
}
